package com.zcsy.manage.model.wxpay;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * @Title: WxPayReturnData.java
 * @Package： com.zcsy.shop.model.wxpay 
 * @Description: 微信JSSDK支付返回值
 *
 * @author tanghan barbadosliy@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2015年11月6日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
@XStreamAlias("xml")
public class WxPayReturnData {
	
	/**
	 * 返回状态码<br>
	 */
	@XStreamAlias("return_code")
	private String return_code;
	
	/**
	 * 返回信息<br>
	 */
	@XStreamAlias("return_msg")
	private String return_msg;
	
	/**
	 * 微信分配的公众账号ID（企业号corpid即为此appId）<br>
	 * demo:wxd678efh567hg6787
	 */
	@XStreamAlias("appid")
	public String appid;
	
	/**
	 * 微信支付分配的商户号<br>
	 * demo:1230000109
	 */
	@XStreamAlias("mch_id")
	public String mch_id;
	
	/**
	 * 终端设备号(门店号或收银设备ID)，注意：PC网页或公众号内支付请传"WEB"<br>
	 * demo:013467007045764
	 */
	@XStreamAlias("device_info")
	public String device_info;
	
	/**
	 * 随机字符串，不长于32位<br>
	 * demo:5K8264ILTKCH16CQ2502SI8ZNMTM67VS
	 */
	@XStreamAlias("nonce_str")
	public String nonce_str;
	
	/**
	 * 签名<br>
	 */
	@XStreamAlias("sign")
	public String sign;
	
	/**
	 * 业务结果<br>
	 */
	@XStreamAlias("result_code")
	public String result_code;
	
	/**
	 * 错误代码<br>
	 */
	@XStreamAlias("err_code")
	public String err_code;
	
	/**
	 * 错误代码描述<br>
	 */
	@XStreamAlias("err_code_des")
	public String err_code_des;
	
	/**
	 * 交易类型<br>
	 * 调用接口提交的交易类型，取值如下：JSAPI，NATIVE，APP
	 */
	@XStreamAlias("trade_type")
	public String trade_type;
	
	/**
	 * 预支付交易会话标识<br>
	 * 微信生成的预支付回话标识，用于后续接口调用中使用，该值有效期为2小时
	 */
	@XStreamAlias("prepay_id")
	public String prepay_id;
	
	/**
	 * 二维码链接:
	 * trade_type为NATIVE是有返回，可将该参数值生成二维码展示出来进行扫码支付<br>
	 */
	@XStreamAlias("code_url")
	public String code_url;
	
	/**
	 * 时间戳，页面JS请求时<br>
	 */
	private String timestamp;
	
	/**
	 * 商户码
	 */
	private String mch_secret;

	public String getReturn_code() {
		return return_code;
	}

	public void setReturn_code(String return_code) {
		this.return_code = return_code;
	}

	public String getReturn_msg() {
		return return_msg;
	}

	public void setReturn_msg(String return_msg) {
		this.return_msg = return_msg;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getDevice_info() {
		return device_info;
	}

	public void setDevice_info(String device_info) {
		this.device_info = device_info;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getResult_code() {
		return result_code;
	}

	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}

	public String getErr_code() {
		return err_code;
	}

	public void setErr_code(String err_code) {
		this.err_code = err_code;
	}

	public String getErr_code_des() {
		return err_code_des;
	}

	public void setErr_code_des(String err_code_des) {
		this.err_code_des = err_code_des;
	}

	public String getTrade_type() {
		return trade_type;
	}

	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type;
	}

	public String getPrepay_id() {
		return prepay_id;
	}

	public void setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
	}

	public String getCode_url() {
		return code_url;
	}

	public void setCode_url(String code_url) {
		this.code_url = code_url;
	}

	
	
	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getMch_secret() {
		return mch_secret;
	}

	public void setMch_secret(String mch_secret) {
		this.mch_secret = mch_secret;
	}

	@Override
	public String toString() {
		return "WxPayReturnData [return_code=" + return_code + ", return_msg="
				+ return_msg + ", appid=" + appid + ", mch_id=" + mch_id
				+ ", device_info=" + device_info + ", nonce_str=" + nonce_str
				+ ", sign=" + sign + ", result_code=" + result_code
				+ ", err_code=" + err_code + ", err_code_des=" + err_code_des
				+ ", trade_type=" + trade_type + ", prepay_id=" + prepay_id
				+ ", code_url=" + code_url + ", timestamp=" + timestamp + "]";
	}

	
}
